<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>example</title>
    <script src="/static/aaa_example/js/jquery_3_2_0.js"></script>
    <script src="/static/aaa_example/js/socket.io_4_0_1.js"></script>

    <link href="/static/aaa_example/css/index.css" rel="stylesheet">

    <script>

    </script>
</head>

<body>
    <!-- 实现鼠标右键功能 -->
  <div contextmenu="custom-menu"></div>
  <ul id="custom-menu">
    <li id="li1">菜单项 1</li>
    <li>菜单项 2</li>
    <li>菜单项 3</li>
    <li>菜单项 4</li>
  </ul>
    <!-- ./ 表示在当前url后加后缀 / 表示在com/后面加后缀 -->
    <p><a href="./redirect">重定向</a></p>
    <p><a href="/example/asnyc_demo" target="_blank">asnyc_demo</a></p>
    <p><a href="./signal">信号</a></p>
    <h1>模板</h1>
    <p><a href="./mu_ban">模板示例</a></p>
    <h1>文件上传和下载:</h1>
    <form action="/example/upload_file" enctype='multipart/form-data' method='POST'>
        <input type="file" name="file">
        <input type="submit" value="upload">
    </form>
    <form action="/example/download_file" >
        <input type="text" name="file_path">
        <input type="submit" value="down">
    </form>
    <p><a href="/static/aaa_example/down_example.txt" download>前端实现下载文件</a></p>
    <p><a href="/example/url_hou_zui/文件内容示例">后端实现下载文件</a></p>
    <h1>websocket</h1>
    <p><a href="/example/web_socket_demo">websocket示例</a></p>
    <h1>url传参</h1>
    <form action="/example/get">
        get:<br>
        <br>
        参数1:<br>
        <input type="text" name="arg1">
        <br>
        参数1:<br>
        <input type="text" name="arg2">
        <br><br>
        <input type="submit" value="Submit">
    </form>
    <p>

    </p>
    <form action="/example/post" method="post">
        post:<br>
        <br>
        参数1:<br>
        <input type="text" name="arg1">
        <br>
        参数1:<br>
        <input type="text" name="arg2">
        <br><br>
        <input type="submit" value="Submit">
    </form>

    <h1>session示例</h1>
    <form action="/example/set_session" >
        <input type="text" name="username">
        <input type="submit" value="set_session">
    </form>
    <p><a href="/example/get_session">get_session</a></p>
    <p><a href="/example/del_session">del_session</a></p>
</body>
<script src="/static/aaa_example/js/index.js"></script>

</html>